Cover TOC Chap Prev Chap Prev Fig Next Fig Next Chap

Chapter 15: Building Extruded Shapes

../ch15/15fig07.gif
Figure 15.7

An extruded cylinder built using a circular cross section swept along a straight spine.

15fig07.wrl
Click on the image to view the VRML scene.

#VRML V2.0 utf8
# The VRML 2.0 Sourcebook
# Copyright (c) 1997
# Andrea L. Ames, David R. Nadeau, and John L. Moreland
Shape {
    appearance Appearance {
        material Material {
            diffuseColor 0.0 0.7 1.0
        }
    }
    geometry Extrusion {
        creaseAngle 0.785
        crossSection [
             1.00  0.00,   0.92 -0.38,
             0.71 -0.71,   0.38 -0.92,
             0.00 -1.00,  -0.38 -0.92,
            -0.71 -0.71,  -0.92 -0.38,
            -1.00 -0.00,  -0.92  0.38,
            -0.71  0.71,  -0.38  0.92,
             0.00  1.00,   0.38  0.92,
             0.71  0.71,   0.92  0.38,
             1.00  0.00
        ]
        spine [ 0.0 -1.0 0.0,  0.0 1.0 0.0 ]
    }
}